Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "resource/aws_cloudfront_distribution: Fix active_trusted_signers attribute for Terraform 0.12" #10093

Merged
merged 1 commit into from
Sep 12, 2019

Conversation

bflad
Copy link
Contributor

@bflad bflad commented Sep 12, 2019

Reverts #10013
Fixes #10091

This process will require writing a state migration to properly work in Terraform 0.12. This should be immediately released in a 2.28.1 bug fix release.

@bflad bflad added bug Addresses a defect in current functionality. regression Pertains to a degraded workflow resulting from an upstream patch or internal enhancement. service/cloudfront Issues and PRs that pertain to the cloudfront service. labels Sep 12, 2019
@bflad bflad requested review from a team September 12, 2019 20:27
@ghost ghost added size/L Managed by automation to categorize the size of a PR. dependencies Used to indicate dependency changes. documentation Introduces or discusses updates to documentation. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Sep 12, 2019
@bflad bflad added this to the v2.28.1 milestone Sep 12, 2019
Copy link
Contributor

@aeschright aeschright left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$ make testacc TESTARGS="-run=TestAccAWSCloudFront"
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./... -v -parallel 20 -run=TestAccAWSCloudFront -timeout 120m
?   	github.com/terraform-providers/terraform-provider-aws	[no test files]
--- PASS: TestAccAWSCloudFrontDistribution_Origin_EmptyDomainName (2.69s)
--- PASS: TestAccAWSCloudFrontDistribution_Origin_EmptyOriginID (2.81s)
--- PASS: TestAccAWSCloudFrontDistribution_OrderedCacheBehavior_ForwardedValues_Cookies_WhitelistedNames (279.76s)
--- PASS: TestAccAWSCloudFrontDistribution_DefaultCacheBehavior_ForwardedValues_Cookies_WhitelistedNames (279.94s)
--- PASS: TestAccAWSCloudFrontDistribution_OrderedCacheBehavior_ForwardedValues_Headers (281.36s)
--- PASS: TestAccAWSCloudFrontDistribution_DefaultCacheBehavior_ForwardedValues_Headers (285.65s)
--- PASS: TestAccAWSCloudFrontDistribution_disappears (288.85s)
--- PASS: TestAccAWSCloudFrontDistribution_ViewerCertificate_AcmCertificateArn (616.65s)
--- PASS: TestAccAWSCloudFrontDistribution_ViewerCertificate_AcmCertificateArn_ConflictsWithCloudFrontDefaultCertificate (617.11s)
--- PASS: TestAccAWSCloudFrontDistribution_HTTP11Config (786.23s)
--- PASS: TestAccAWSCloudFrontDistribution_customOrigin (771.22s)
--- PASS: TestAccAWSCloudFrontDistribution_IsIPV6EnabledConfig (786.61s)
--- PASS: TestAccAWSCloudFrontDistribution_noCustomErrorResponseConfig (786.86s)
--- PASS: TestAccAWSCloudFrontDistribution_RetainOnDelete (789.43s)
--- PASS: TestAccAWSCloudFrontDistribution_WaitForDeployment (795.56s)
--- PASS: TestAccAWSCloudFrontDistribution_S3Origin (820.51s)
--- PASS: TestAccAWSCloudFrontDistribution_multiOrigin (828.58s)
--- PASS: TestAccAWSCloudFrontDistribution_noOptionalItemsConfig (848.29s)
--- PASS: TestAccAWSCloudFrontDistribution_OriginGroups (819.89s)
--- PASS: TestAccAWSCloudFrontDistribution_orderedCacheBehavior (848.84s)
--- PASS: TestAccAWSCloudFrontDistribution_S3OriginWithTags (1254.26s)
--- PASS: TestAccAWSCloudFrontDistribution_Enabled (1391.86s)

@aeschright aeschright merged commit 03fb7f7 into master Sep 12, 2019
@aeschright aeschright deleted the revert-10013-td-remove-flatmap branch September 12, 2019 21:22
aeschright added a commit that referenced this pull request Sep 12, 2019
@ghost
Copy link

ghost commented Sep 12, 2019

This has been released in version 2.28.1 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

chrisfowles pushed a commit to chrisfowles/terraform-provider-aws that referenced this pull request Sep 16, 2019
chrisfowles pushed a commit to chrisfowles/terraform-provider-aws that referenced this pull request Sep 16, 2019
bflad added a commit that referenced this pull request Sep 25, 2019
…lly for now, add test covering existing active_trusted_signers behavior

Reference: #8902
Reference: #10013
Reference: #10093

Temporarily keep the existing behavior for the only provider attribute using the legacy package so we can migrate to the standalone Terraform Plugin SDK from the github.com/hashicorp/terraform dependency in the future. Switching this attribute to not use the flatmap package will require state migration or deprecation.

Output from acceptance testing:

```
--- PASS: TestAccAWSCloudFrontDistribution_DefaultCacheBehavior_TrustedSigners (1351.69s)
```
@ghost
Copy link

ghost commented Nov 1, 2019

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Nov 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. dependencies Used to indicate dependency changes. documentation Introduces or discusses updates to documentation. regression Pertains to a degraded workflow resulting from an upstream patch or internal enhancement. service/cloudfront Issues and PRs that pertain to the cloudfront service. size/L Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

version 2.28.0 return errors
2 participants